package lab02.Test35;

public class Worker extends Employee {
    int days;
    double dailySalary;

    public Worker(String name,int days,double dailySalary) {
        super(name);
        this.days=days;
        this.dailySalary=dailySalary;
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public double computeSalary() {
        return dailySalary*days;
    }
}
